package com.enjoy;

import javax.servlet.*;
import java.io.IOException;

public class EnjoyFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println(this + " init");
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {

        System.out.println(this + " chain");
        chain.doFilter(request,response);
    }

    @Override
    public void destroy() {

    }
}
